package com.miqtech.master.wyrecorder.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by arvin on 2016/10/28.
 */

public class TimeUtils {

    public static String formatTime(long mill, String patter) {
        Date d = new Date(mill-8*60*60*1000);

        SimpleDateFormat f = new SimpleDateFormat(patter);
        return f.format(d);
    }
}
